#ifndef UJSON_H
#define UJSON_H

#include "../utkcore_global.h"

#include <QScopedPointer>
#include <QVariantMap>

class UJsonPrivate;
class UTKCORE_EXPORT UJson
{
public:
    UJson();
    ~UJson();

    bool fromJson(const QByteArray &json);

    bool fromFile(const QString &fileName);

    QVariantList getArrayList();

    QVariantMap getObjectMap();

private:
    QScopedPointer<UJsonPrivate> d_ptr;
    Q_DECLARE_PRIVATE_D(d_ptr, UJson)
};

#endif // UJSON_H



